package com.money.service;

import com.money.entity.User;
import com.money.mapper.UserMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.servlet.http.HttpSession;

@Service
public class UserService {
    @Resource
    private UserMapper userMapper;
    //用户登录方法
    public User userLogin(User user) {
        User user1 = userMapper.login(user);
        return user1;
    }
}
